const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  userId: state => state.user.userInfo.userId,
  // 访问比较方便
  username: state => state.user.userInfo.username,
  // token: state => state.user.token,
  avatar: state => state.user.userInfo.staffPhoto,
  // 新建一个获取公司id的getter
  companyId: state => state.user.userInfo.companyId
  // name: state => state.user.name
}
export default getters
